package tool.zyk.serializable;

import tool.zyk.stardand.RpcRequest;
import tool.zyk.stardand.RpcResponse;

public interface SerializableConverter {

    //传输层数据-> java对象
    byte[] parseTransferData2Object(Object object);

    //java对象-> 传输层数据
    <T> T serialObj2Transfer(byte[] bytes, Class<T> tClass);

    RpcRequest serialRpcRequest(byte[] bytes);

    RpcResponse serialRpcResponse(byte[] bytes);


}
